#include<iostream>
#include<string>
//类
class Student
{
public:
    //成员函数（方法）
    void show();
    void SetAge(int age);

    void SetName(std::string name);

private:
    //成员变量（属性）
    std::string m_name;
    int m_age;

};
void Student::show()
{
    std::cout << "学生姓名：" << m_name << "  学生年龄:" << m_age << std::endl;
}
void Student::SetAge(int age)
{
    m_age = age;
}
void Student::SetName(std::string name)
{
    m_name = name;
}
struct Test
{
    public:
    void SetA(int a)
    {
        m_a = a;
    }
    void show()
    {
        std::cout << m_a << std::endl;
    }
    private:
        int m_a;
};
int main()
{
    // Student s;
    // s.SetAge(10);
    // s.SetName("张三");
    // s.show();

    Test a;
    a.SetA(10);
    a.show();
    return 0;
}